package com.example.gty.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.example.gty.utils.BaseUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor

@ExcelTarget("studentVo")
public class StudentVo implements Serializable {
    @Excel(name = "学号")
    private String sno;

    @Excel(name = "姓名")
    private String sname;

    private String img;

    @Excel(name = "性别")
    private String sex;

    @Excel(name = "班级")
    private String cclass;

    @Excel(name = "专业")
    private String major;

    private String tel;
    @Excel(name = "学院")
    private String college;

    private Integer age;

    private Date createTime;

    @ExcelCollection(name = "课程")
    List<Course> courses;
    @ExcelCollection(name = "成绩")
    List<Grade> grades;


}